package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author :李金帅
 * @since 2024-11-26 Tuesday 10:25:46
 */


public class EDetails {
    private Integer id;
    private Integer tradingCurrency;
    private String tradingCurrencyUnit;
    private String baseCurrency;
    private BigDecimal buyingPrice;
    private BigDecimal sellingPrice;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "Asia/Shanghai")
    private Date releaseTime;

    @Override
    public String toString() {
        return "EDetails{" +
                "id=" + id +
                ", tradingCurrency='" + tradingCurrency + '\'' +
                ", tradingCurrencyUnit='" + tradingCurrencyUnit + '\'' +
                ", baseCurrency='" + baseCurrency + '\'' +
                ", buyingPrice=" + buyingPrice +
                ", sellingPrice=" + sellingPrice +
                ", releaseTime=" + releaseTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getTradingCurrency() {
        return tradingCurrency;
    }

    public void setTradingCurrency(Integer tradingCurrency) {
        this.tradingCurrency = tradingCurrency;
    }

    public String getTradingCurrencyUnit() {
        return tradingCurrencyUnit;
    }

    public void setTradingCurrencyUnit(String tradingCurrencyUnit) {
        this.tradingCurrencyUnit = tradingCurrencyUnit;
    }

    public String getBaseCurrency() {
        return baseCurrency;
    }

    public void setBaseCurrency(String baseCurrency) {
        this.baseCurrency = baseCurrency;
    }

    public BigDecimal getBuyingPrice() {
        return buyingPrice;
    }

    public void setBuyingPrice(BigDecimal buyingPrice) {
        this.buyingPrice = buyingPrice;
    }

    public BigDecimal getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(BigDecimal sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }
}
